<?php
#region CODE
use Gotcha\App\Framework\Controller;

$framework = new Controller();
$calendar = new \Modules\JasminumCalendar\Controllers\AdminController();
#endregion
?>
<div id="adminPanel">
    <header>
        <h1>Panel Administracyjny</h1>
    </header>
    <div id="adminContent" class="clearfix">
        <div id="adminNavigation" class="pull-left">
            <ul>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/StaticContent"); ?>">Treści statyczne</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Layout"); ?>">Układ stron</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Modules"); ?>">Moduły</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Settings"); ?>">Ustawienia</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Jasminum/Calendar"); ?>">Kalendarz</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Jasminum/Gallery"); ?>">Galeria</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Jasminum/Reservations"); ?>">Rezerwacje</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Jasminum/Menus"); ?>">Menu</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Jasminum/Newsletter"); ?>">Newsletter</a>
                </li>
                <li>
                    <a href="<?= $framework->UrlContent("/Admin/Jasminum/News"); ?>">Newsy</a>
                </li>
            </ul>
        </div>
        <div id="adminPage" class="pull-left" style="margin: 8px;">
            <header>
                <h2>Kalendarz - dodaj wydarzenie</h2>
            </header>
            <div id="adminStaticContent">
                <form method="post" action="<?= $framework->UrlContent("/Admin/Jasminum/Calendar/CreatePost"); ?>">
                    <fieldset>
                        <label for="Hall">Sala</label>
                        <?= $calendar->returnHalls(); ?>
                        <label for="Date">Data</label>
                        <input type="text" name="Date" id="Date" value="" placeholder="RRRR-MM-DD" style="width: 97px;" maxlength="10">
                        <label for="Description">Opis</label>
                        <input type="text" name="Description" id="Description" value="">
                        <button type="submit">Zapisz</button>
                        <input type="hidden" name="Id" value="<?= $_GET['id']; ?>">
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</div>